package com.j2ee.JDKProxy.multi.interfaces;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class AAndBImplInterceptor implements InvocationHandler {
	
	private Object target ;
	private Logger logger ;

	public AAndBImplInterceptor(Object target, Logger logger) {
		super();
		this.target = target;
		this.logger = logger;
	}

	@Override
	public Object invoke(Object proxy, Method method, Object[] args)
			throws Throwable {
		this.logger.logging();
		method.invoke(target, args) ;
		return null;
	}
	
	

}
